//
//  FileCenter.h
//  first app
//
//  Created by 林 小明 on 14-7-16.
//
//

#import <Foundation/Foundation.h>

@interface FileCenter : NSObject

+ (void)CreateDocumentsDirectory:(NSString *)dirName;

+ (long long)SaveToFile:(NSString *)dirName fileName:(NSString *)fileName fileData:(NSData *)data fileOffset:(unsigned long long)fileOffset;

+ (BOOL)SaveToStringFile:(NSString *)dirName fileName:(NSString *)fileName fileData:(NSString *)data;

+ (NSData *)ReadFile:(NSString *)dirName fileName:(NSString *)fileName;

+ (NSString *)ReadStringFile:(NSString *)dirName fileName:(NSString *)fileName;

+ (BOOL)IsFileExistInDocuments:(NSString *)dirName fileName:(NSString *)fileName;

+ (BOOL)CopyFile:(NSString *)src_dir_name srcFileName:(NSString *)src_file_name
     destDirName:(NSString *)dest_dir_name destFileName:(NSString *)dest_file_name;

+ (void)DeleteFile:(NSString *)dirName fileName:(NSString *)fileName;

+ (NSDictionary*)GetDocumentsFileAttribute:(NSString *)dirName fileName:(NSString *)fileName;

@end
